updating oE video_config

video_config

include graphcst.e 
namespace graphcst 
public function video_config() 

returns a description of the current video configuration.

Returns:

A sequence, of 10 non-negative integers, laid out as follows:

  1. color monitor? -- 0 if monochrome, 1 otherwise
  2. current video mode
  3. number of text rows in console buffer
  4. number of text columns in console buffer
  5. screen width in pixels
  6. screen height in pixels
  7. number of colors
  8. number of display pages
  9. number of text rows for current screen size
  10. number of text columns for current screen size
Comments:

A public enum is available for convenient access to the returned configuration data:

  • VC_COLOR
  • VC_MODE
  • VC_LINES
  • VC_COLUMNS
  • VC_XPIXELS
  • VC_YPIXELS
  • VC_NCOLORS
  • VC_PAGES
  • VC_SCRNLINES
  • VC_SCRNCOLS

This routine makes it easy for you to parameterize a program so it will work in many different graphics modes.

Example 1:
vc = video_config() 
-- vc could be {1, 3, 300, 132, 0, 0, 32, 8, 37, 90} 
See Also:

graphics_mode

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu